package com.zzz.demo.service.impl;

import com.ccpp.demo.entity.LearnResource;
import com.ccpp.demo.service.LearnService;
import com.zzz.demo.dao.LearnDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LearnServiceImpl implements LearnService {

    @Autowired
    LearnDao learnDao;
    @Override
    public int add(LearnResource learnResouce) {
        return this.learnDao.add(learnResouce);
    }

    @Override
    public int update(LearnResource learnResouce) {
        return this.learnDao.update(learnResouce);
    }

    @Override
    public int deleteByIds(String ids) {
        return this.learnDao.deleteByIds(ids);
    }

    @Override
    public LearnResource queryLearnResourceById(Long learnResource) {
        return learnDao.queryLearnResouceById(learnResource);
    }

    @Override
    public List<LearnResource> getAll() {
        return learnDao.getAll();
    }

}